package com.senditcertified.mail.widget.dialog;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import com.senditcertified.mail.R;

public class HelpDialog extends Dialog {
	private String title;
	private String content;

	public HelpDialog(Context context, String title, String content) {
		super(context);
		this.title = title;
		this.content = content;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.dialog_help);
		initComponents();
	}

	private void initComponents() {
		getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT);
		((TextView)findViewById(R.id.tv_title)).setText(title);
		((TextView)findViewById(R.id.tv_content)).setText(content);

	}


}
